import Bridge from '@/utils/Bridge';
/**
 * 获取url的参数
 * @returns {{}}
 */
const getQueryParams = () => {
	const search = location.search;
	const param = {};
	if (search.length > 2) {
		const strs = search.split('?')[1].split('&');
		for (let i = 0; i < strs.length; i++) {
			const con = strs[i].split('=');
			param[con[0]] = decodeURIComponent(con[1]);
		}
	}
	return param;
};

export {
	getQueryParams,
	Bridge
};
